package com.example;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.config.server.EnableConfigServer;


/**
 * Create with Intellij idea
 * User:鲁智明
 * Date:2018/11/24
 * Time:12:41
 */
@EnableConfigServer         //开启分布式配置中心服务器端
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})  //忽略数据源加载
public class AppConfigServer {

    public static void main(String[] args) {
        SpringApplication.run(AppConfigServer.class,args);
    }

}
